<?php

namespace app\v1\controller;

use think\Controller;
use think\Request;
/**
 * 地区类
 */
class Region extends Base
{
    public function list()
    {
        $option = [];
        (input('?name') && !empty(input('name'))) ? $option['name'] = input('name') : '';
        (input('?parent_id') && !empty(input('parent_id'))) ? $option['parent_id'] = input('parent_id') : '';

        return model('Region')->GetList($option);
    }

}
